import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useMusicState = defineStore(
  'music',
  () => {
    const music = ref({
      id: ''
    })
    const setMusic = (data) => {
      music.value = data
    }

    const clear = () => {
      music.value = {}
    }

    return {
      music,
      setMusic,
      clear
    }
  }
)
